#pragma once

#include <pthread.h>
#include "Mutex.h"

namespace yazi{
namespace thread{

class Condition{
public:
    Condition();
    ~Condition();
    int broadcast();
    int signal();
    int wait(Mutex *mutex);

private:
    pthread_cond_t m_cond;
};

}}